home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’94 / [√] Distribution Restricted! / Scott Fought, Chad Walters / That Shit's (newer) / TestShit.a < prev    next >
Text File  |  1994-06-25  |  328b  |  38 lines

  1. Main    MAIN
  2.  
  3.     DC.W    $a9ff
  4.     
  5.     nop
  6.     nop
  7.     
  8.     movea.w    #-1,a0        ;Cause a bus error
  9.     move.l    d0,(a0)
  10.     
  11.     nop
  12.     nop
  13.     
  14.     DC.W    $80FF        ;Illegal instruction
  15.     
  16.     nop
  17.     nop
  18.     
  19.     moveq    #-1,d0        ;Check exception
  20.     chk        d0,d0
  21.     
  22.     nop
  23.     nop
  24.     
  25.     moveq    #0,d0        ;Divide by 0
  26.     divu.w    d0,d0
  27.     
  28.     nop
  29.     nop
  30.     
  31.     jmp        $237        ;Cause an address error
  32.  
  33.     nop
  34.     nop
  35.     nop
  36.     
  37.     rts    
  38.     END